﻿import matplotlib.pyplot as plt
import pandas as pd

edata = pd.read_csv('居民客户的用电缴费习惯分析 1.csv', encoding='GBK')
userid = edata['userid']
money_sum = edata['money_sum']
std_money = edata['std_money']
plt.plot(userid, money_sum, 'g-', label="money_sum")
plt.plot(userid, std_money, 'r--', label="std_money")
plt.text(userid[98], 650, std_money[0])
plt.title('volts')
plt.xlabel('userid')
plt.ylabel('money')
plt.legend(bbox_to_anchor=(0.35, 0.9), loc=2, borderaxespad=0.)
plt.show()
